package com.zf.service.Impl;

import com.zf.mapper.personMapper;
import com.zf.pojo.person;
import com.zf.service.personService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class personServiceImpl implements personService {

    @Autowired
    personMapper personMapper;

    @Override
    public List<person> queryPersonList() {
    return    personMapper.queryPersonList();
    }

    @Override
    public int addPerson(person person1) {
        return personMapper.addPerson(person1);
    }

    @Override
    public int deletePerson(int id) {
        return personMapper.deletePerson(id);
    }

    @Override
    public person selectById(int id) {
        return personMapper.selectById(id);
    }
}
